// 自动生成模板SmsCouponSpuCategoryRelation
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsCouponSpuCategoryRelation表 结构体  SmsCouponSpuCategoryRelation
type SmsCouponSpuCategoryRelation struct {
	Id           *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                         //id
	CouponId     *int    `json:"couponId" form:"couponId" gorm:"comment:优惠券id;column:coupon_id;size:19;"`              //优惠券id
	CategoryId   *int    `json:"categoryId" form:"categoryId" gorm:"comment:产品分类id;column:category_id;size:19;"`       //产品分类id
	CategoryName *string `json:"categoryName" form:"categoryName" gorm:"comment:产品分类名称;column:category_name;size:64;"` //产品分类名称
}

// TableName smsCouponSpuCategoryRelation表 SmsCouponSpuCategoryRelation自定义表名 sms_coupon_spu_category_relation
func (SmsCouponSpuCategoryRelation) TableName() string {
	return "sms_coupon_spu_category_relation"
}

type SmsCouponSpuCategoryRelationRepo interface {
}

type SmsCouponSpuCategoryRelationUsecase struct {
	repo SmsCouponSpuCategoryRelationRepo
	log  *log.Helper
}

func NewSmsCouponSpuCategoryRelationUsecase(repo GreeterRepo, logger log.Logger) *SmsCouponSpuCategoryRelationUsecase {
	return &SmsCouponSpuCategoryRelationUsecase{repo: repo, log: log.NewHelper(logger)}
}
